package com.chixing.service;

import com.chixing.commons.ServerResponse;
import com.chixing.pojo.PersonCenter;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 个人中心表 服务类
 * </p>
 *
 * @author Jason Marslyon
 * @since 2022-10-04
 */
public interface IPersonCenterService {
//    public PersonCenter checkLogin(Long telno,String password);
    public ServerResponse getById(Integer person);
    public ServerResponse save(PersonCenter personCenter);
//    public PersonCenter userCheckLogin(Long personTel,String personPassword);//登录
    public ServerResponse loginToken(PersonCenter personCenter);//登录token
    public ServerResponse getByPersonal(Integer personalId);
    public PersonCenter getPerName(Integer personId);//根据personId获取用户名字
    public ServerResponse updatePersonCenter(PersonCenter personCenter,Integer id);//修改personCenter用户表

    //个人中心修改个人信息
    public ServerResponse update(PersonCenter personCenter,String token);

    public PersonCenter checkLogin(PersonCenter personCenter);
    public List<String> getAllUsername();
    public List<String> getAllManageName();

    //发送短信验证码
    Boolean sendMessage(String phone, String code, Map<String,Object> codeMap);
}
